<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<c:set value="<%=request.getContextPath()%>" var="ctx"></c:set>
<style type="text/css">

input[type="file"] {
	margin-right: 20px;
}
</style>
<form action="admin/product/saveimage" method="post">
	<table width="100%" valign="top" id="file-table">
		<tr id="file1">
			<td align="right">
				上传文件：
			</td>
			<td id="td1">
				<input class="public_inputf" type="file" name="file1" />
				<a href="#" id="a1" class="l-btn" onclick="addFile('1');" style="font-size: 16px;">
					<span class="l-btn-left">
						<span class="l-btn-text"><b>+</b></span>
					</span>
				</a>
			</td>
		</tr>
	</table>
</form>
<script type="text/javascript">
	function onSubmit(){
		var files = $('input[type="file"]');
		for(var i = 0; i < files.legth; i++){
			if(!checkInput(files[i]))
				return false;
		}
		return false;
	}
	var api = lhgdialog.focus;
	api.button({
		name: '确定',
		callback: onSubmit,
		focus: true
	}, {
		name: '取消'
	}).lock();
</script>
